Release 10.1A: OpenEdge Data Management:
SQL Reference
DhSQLException
Extends the general
java.lang. exception class to provide detail about errors in SQL statement execution. Any such errors raise an exception with an argument that is anSQLExceptionclass object. ThegetDiagnostics()method retrieves details of the error.Constructors
public DhSQLException(intecode, StringerrMsg)Parameters
ecodeThe error number associated with the exception condition.
errMsgThe error message associated with the exception condition.
ExampleIn this example, the
DhSQLExceptionconstructor creates an exception object calledexcepand then throws theexcepobject under all conditions:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |